<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="box" data-id="666" data-name="神明">我是一个盒子</div>
  <input type="text" name="" id="">
  <input type="checkbox" name="" id="">
  <button disabled>按钮</button>
  <select name="" id="">
    <option value="">asdk</option>
    <option value="">asda</option>
  </select>
</body>
<script>
  const box=document.querySelector('.box')
  console.log(box.dataset);
  
</script>
</html>